import Layout from '@/layout/admin';

export default [{
  path: '/admin/project',
  name: 'project',
  component: Layout,
  children: [{
    path: 'index',
    component: () => import('@/views/admin/project/index'),
    name: 'projectIndex',
    meta: { title: '项目管理', icon: 'icon icon-project-manage', noCache: true },
  },
  {
    path: 'form',
    component: () =>
                    import('@/views/admin/project/form'),
    name: 'ProjectForm',
    hidden: true,
    meta: { title: '添加项目', icon: 'dashboard', activeMenu: '/admin/project/index', noCache: true },
  },
  {
    path: 'single-form',
    component: () =>
                    import('@/views/admin/project/children-project-form'),
    name: 'singleProjectForm',
    hidden: true,
    meta: { title: '添加单项项目', icon: 'dashboard', activeMenu: '/admin/project/index', noCache: true },
  },
  ],
},
/* {
  path: '/admin/statistics',
  name: 'statistics',
  component: Layout,
  meta: {
    title: '投资分析管理',
    icon: 'icon icon-base-data'
  },
  children: [{
    path: 'index',
    component: () => import('@/views/admin/statistics/statistics/index'),
    name: 'statisticsIndex',
    meta: { title: '投资统计', icon: 'icon icon-huabanfuben', noCache: true }
  },
  {
    path: 'form',
    component: () =>
                    import('@/views/admin/statistics/statistics/form'),
    name: 'statisticsForm',
    hidden: true,
    meta: { title: '配置表头', icon: 'dashboard', activeMenu: '/admin/statistics/index', noCache: true }
  },
  {
    path: 'dosage',
    component: () =>
                    import('@/views/admin/statistics/statistics/dosage'),
    name: 'statisticsDosage',
    hidden: true,
    meta: { title: '物料用量统计表', icon: 'dashboard', activeMenu: '/admin/statistics/dosage', noCache: true }
  },
  {
    path: 'material',
    component: () =>
                    import('@/views/admin/statistics/material/index'),
    name: 'StatisticsMaterial',
    hidden: true,
    meta: { title: '物料用量', icon: 'dashboard', noCache: true }
  }
  ]
}, */

{
  path: '/admin/statistics',
  name: 'statistics',
  component: Layout,
  meta: {
    title: '投资分析管理',
    icon: 'icon icon-huabanfuben2',
  },
  children: [
    {
      path: 'index',
      component: () =>
                    import('@/views/admin/statistics/statistics/index'),
      name: 'statisticsIndex',
      meta: { title: '投资统计', icon: 'icon icon-huabanfuben', noCache: true },
    },
    {
      path: 'form',
      component: () =>
                    import('@/views/admin/statistics/statistics/form'),
      name: 'statisticsForm',
      hidden: true,
      meta: { title: '配置表头', icon: 'yml-job-manage', activeMenu: '/admin/statistics/index', noCache: true },
    },
    {
      path: 'statisticsProduct',
      component: () =>
                    import('@/views/admin/statistics/statistics/product'),
      name: 'statisticsProduct',
      hidden: true,
      meta: { title: '投资分析产品', icon: 'icon icon-budget-discount', noCache: true, activeMenu: '/admin/statistics/statisticsProduct' },
    },
    {
      path: 'materialDosage',
      component: () =>
                    import('@/views/admin/statistics/material/index'),
      name: 'StatisticsMaterial',
      meta: { title: '物料用量', icon: 'icon icon-huabanfuben1', noCache: true },
    },
    {
      path: 'materialProduct',
      component: () =>
                    import('@/views/admin/statistics/material/product'),
      name: 'materialProduct',
      hidden: true,
      meta: { title: '物料用量产品', icon: 'icon icon-huabanfuben1', noCache: true, activeMenu: '/admin/statistics/materialProduct' },
    },
    {
      path: 'material',
      component: () =>
                    import('@/views/admin/statistics/material/dosage'),
      name: 'MaterialDosage',
      hidden: true,
      meta: { title: '物料用量详情', icon: 'yml-job-manage', noCache: true, activeMenu: '/admin/statistics/material/dosage' },
    },
  ],
},

{
  path: '/admin/base',
  name: 'base',
  component: Layout,
  meta: {
    title: '数据管理',
    icon: 'icon icon-base-data',
  },
  children: [
    {
      path: 'elevation',
      component: () =>
                    import('@/views/admin/base/elevation/index'),
      name: 'elevation',
      meta: { title: '特殊地区管理', icon: 'icon icon-Landforms-altitude', noCache: true },
    },
    {
      path: 'elevation/form',
      component: () =>
                    import('@/views/admin/base/elevation/elevation'),
      name: 'elevationForm',
      hidden: true,
      meta: { title: '特殊地区添加', icon: 'yml-job-manage', activeMenu: '/admin/base/elevation', noCache: true },
    },
    {
      path: 'discount',
      component: () =>
                    import('@/views/admin/base/discount/index'),
      name: 'discount',
      meta: { title: '预算折扣管理', icon: 'icon icon-budget-discount', noCache: true },
    },
    {
      path: 'discount/form',
      component: () =>
                    import('@/views/admin/base/discount/discount'),
      name: 'discountForm',
      hidden: true,
      meta: { title: '预算折扣添加', icon: 'yml-job-manage', activeMenu: '/admin/base/discount', noCache: true },
    },
    {
      path: 'material',
      component: () =>
                    import('@/views/admin/base/material/index'),
      name: 'material',
      meta: { title: '物料价格管理', icon: 'icon icon-materiel-price', noCache: true },
    },
    {
      path: 'material/form',
      component: () =>
                    import('@/views/admin/base/material/material'),
      name: 'materialForm',
      hidden: true,
      meta: { title: '物料价格添加', icon: 'yml-job-manage', activeMenu: '/admin/base/material', noCache: true },
    },
    {
      path: 'manhand',
      component: () =>
                    import('@/views/admin/base/manhand/index'),
      name: 'manhand',
      meta: { title: '人手孔计算管理', icon: 'icon icon-manhand-cale', noCache: true },
    },
    {
      path: 'manhand/form',
      component: () =>
                    import('@/views/admin/base/manhand/manhand'),
      name: 'manhandForm',
      hidden: true,
      meta: { title: '人手孔计算添加', icon: 'yml-job-manage', activeMenu: '/admin/base/manhand', noCache: true },
    },
    {
      path: 'plastic',
      component: () =>
                    import('@/views/admin/base/plastic/index'),
      name: 'plastic',
      meta: { title: '塑料管管理', icon: 'icon icon-plastic-cale', noCache: true },
    },
    {
      path: 'plastic/form',
      component: () =>
                    import('@/views/admin/base/plastic/plastic'),
      name: 'plasticForm',
      hidden: true,
      meta: { title: '塑料管添加', icon: 'yml-job-manage', activeMenu: '/admin/base/plastic', noCache: true },
    },
    {
      path: 'steel',
      component: () =>
                    import('@/views/admin/base/steel/index'),
      name: 'steel',
      meta: { title: '钢管管理', icon: 'icon icon-steel-pipe', noCache: true },
    },
    {
      path: 'steel/form',
      component: () =>
                    import('@/views/admin/base/steel/steel'),
      name: 'steelForm',
      hidden: true,
      meta: { title: '钢管添加', icon: 'yml-job-manage', activeMenu: '/admin/base/steel', noCache: true },
    },
    {
      path: 'pipeline',
      component: () =>
                    import('@/views/admin/base/pipeline/index'),
      name: 'pipeline',
      meta: { title: '管道工程定额管理', icon: 'icon icon-pipeline', noCache: true },
    },
    {
      path: 'pipeline/form',
      component: () =>
                    import('@/views/admin/base/pipeline/pipeline'),
      name: 'pipelineForm',
      hidden: true,
      meta: { title: '管道工程定额添加', icon: 'yml-job-manage', activeMenu: '/admin/base/pipeline', noCache: true },
    },
    {
      path: 'linequote',
      component: () =>
                    import('@/views/admin/base/line/index'),
      name: 'linequote',
      meta: { title: '线路工程定额管理', icon: 'icon icon-Lineengineeringquotamanagement', noCache: true },
    },
    {
      path: 'linequote/form',
      component: () =>
                    import('@/views/admin/base/line/linequota'),
      name: 'linequoteForm',
      hidden: true,
      meta: { title: '线路工程定额添加', icon: 'yml-job-manage', activeMenu: '/admin/base/pipeline', noCache: true },
    },
    {
      path: 'unit',
      component: () =>
                    import('@/views/admin/base/unit/index'),
      name: 'unit',
      meta: { title: '单位管理', icon: 'icon icon-unit', noCache: true },
    },
    {
      path: 'unit/form',
      component: () =>
                    import('@/views/admin/base/unit/unit'),
      name: 'unitForm',
      hidden: true,
      meta: { title: '单位管理添加', icon: 'yml-job-manage', activeMenu: '/admin/base/unit', noCache: true },
    },
  ],
},
{
  path: '/admin/material',
  component: Layout,
  name: 'materials',
  meta: {
    title: '物料管理',
    icon: 'icon icon-equipment-materials',
  },
  children: [
    {
      path: 'standard',
      component: () =>
                    import('@/views/admin/base/standard/index'),
      name: 'standard',
      meta: { title: '标准材料管理', icon: 'icon icon-standard-manage', noCache: true },
    },
    {
      path: 'standard/form',
      component: () =>
                    import('@/views/admin/base/standard/components/StandardFrom'),
      name: 'standardForm',
      hidden: true,
      meta: { title: '标准材料添加', icon: 'yml-job-manage', activeMenu: '/admin/material/standard', noCache: true },
    },
    {
      path: 'relation-table',
      component: () =>
                    import('@/views/admin/base/standard/components/standard/RelationTable'),
      hidden: true,
      name: 'relationTable',
      meta: { title: '查看定额关联表', icon: 'yml-profession-manage', noCache: true },
    },
    {
      path: 'relation-equipment',
      component: () =>
                    import('@/views/admin/base/standard/components/standard/RelationEquipment'),
      hidden: true,
      name: 'relationEquipment',
      meta: { title: '查看关联设备', icon: 'yml-profession-manage', noCache: true },
    },

    {
      path: 'standard/setting',
      component: () =>
                    import('@/views/admin/base/standard/components/standard/equipment'),
      name: 'standardSetting',
      hidden: true,
      meta: { title: '定额查看', icon: 'yml-job-manage', noCache: true },
    },
    {
      path: 'nostandard',
      component: () =>
                    import('@/views/admin/base/no-standard/index'),
      name: 'nostandard',
      meta: { title: '非标准管理', icon: 'icon icon-unstandard-manage', noCache: true },
    },
    {
      path: 'type',
      component: () =>
                    import('@/views/admin/base/type/index'),
      name: 'type',
      meta: { title: '分类管理', icon: 'icon icon-category-manage', noCache: true },
    },
    /* {
      path: 'projectQuota',
      component: () =>
        import('@/views/admin/base/ProjectQuota/index'),
      name: 'projectQuota',
      meta: { title: '工程定额', icon: 'icon icon-quota-lib', noCache: true }
    } */
  ],
},
{
  path: 'standard/form',
  component: () =>
    import('@/views/admin/base/standard/components/StandardFrom'),
  name: 'standardForm1',
  hidden: true,
  meta: { title: '标准材料添加', icon: 'yml-job-manage', noCache: true },
},
// {
//   path: '/admin/app',
//   component: Layout,
//   meta: {
//     title: '应用管理',
//     icon: 'yml-App-manage'
//   },
//   children: [
//     {
//       path: 'index',
//       component: () => import('@/views/admin/app/base/index'),
//       name: 'Icons',
//       meta: { title: '应用中心', icon: 'yml-app-center', noCache: true }
//     },
//     {
//       path: 'ios',
//       component: () => import('@/views/admin/app/version/index'),
//       name: 'Icons',
//       meta: { title: 'iOS配置', icon: 'yml-ios-conf', noCache: true }
//     },
//     {
//       path: 'group',
//       component: () => import('@/views/admin/app/group/index'),
//       name: 'Icons',
//       meta: { title: '应用分组', icon: 'yml-ios-conf', noCache: true }
//     }
//   ]
// },
// {
//   path: '/admin/message',
//   component: Layout,
//   meta: {
//     title: '消息配置',
//     icon: 'yml-message-conf'
//   },
//   children: [
//     {
//       path: 'tmpl',
//       component: () => import('@/views/admin/message/template/index'),
//       name: 'Icons',
//       meta: { title: '模板配置', icon: 'yml-template-conf', noCache: true }
//     },
//     {
//       path: 'push',
//       component: () => import('@/views/admin/message/push/index'),
//       name: 'Icons',
//       meta: { title: '消息推送', icon: 'yml-message-push', noCache: true }
//     },
//     {
//       path: 'log',
//       component: () => import('@/views/admin/message/log/index'),
//       name: 'Icons',
//       meta: { title: '消息记录', icon: 'yml-message-record', noCache: true }
//     }
//   ]
// },
{
  path: '/admin/maintenance',
  component: Layout,
  name: 'maintenance',
  meta: {
    title: '定额维护',
    icon: 'icon icon-quota-maintenance',
  },
  children: [{
    path: 'quota',
    component: () =>
                    import('@/views/admin/maintenance/quota-library/index'),
    name: 'quota',
    meta: { title: '定额库维护', icon: 'icon icon-quota-lib', noCache: true },
  },
  {
    path: 'quota-information',
    component: () =>
                  import('@/views/admin/base/standard/components/standard/QuotaInformation'),
    hidden: true,
    name: 'quotaInformation',
    meta: { title: '定额信息表单', icon: 'yml-profession-manage', activeMenu: '/admin/maintenance/quota', noCache: true },
  },
  {
    path: 'machine',
    component: () =>
                    import('@/views/admin/maintenance/machine-shop/index'),
    name: 'machine',
    meta: { title: '机械库维护', icon: 'icon icon-machine-lib', noCache: true },
  },
  {
    path: 'instrument',
    component: () =>
                    import('@/views/admin/maintenance/instrument-library/index'),
    name: 'instrument',
    meta: { title: '仪表库维护', icon: 'icon icon-meter-lib', noCache: true },
  },
  {
    path: 'material',
    component: () =>
                    import('@/views/admin/maintenance/material-library/index'),
    name: 'materialLib',
    meta: { title: '材料库维护', icon: 'icon icon-material-lib', noCache: true },
  },
  {
    path: 'equipment',
    component: () =>
                    import('@/views/admin/maintenance/equipment-library/index'),
    name: 'equipment',
    meta: { title: '设备库维护', icon: 'icon icon-equipment-lib', noCache: true },
  },
  ],
},
{
  path: '/admin/interfaces',
  name: 'interfaces',
  component: Layout,
  meta: {
    title: '接口管理',
    icon: 'icon icon-apidata',
  },
  children: [{
    path: 'data',
    component: () =>
                    import('@/views/admin/interfaces/data/index'),
    name: 'data',
    meta: { title: '接口数据', icon: 'icon icon-api-data', noCache: true },
  },
  {
    path: 'projectList',
    component: () =>
                    import('@/views/admin/interfaces/data/projectList'),
    name: 'projectList',
    hidden: true,
    meta: { title: '详情', icon: 'yml-sys-setting', activeMenu: '/admin/interfaces/data', noCache: true },
  },
  {
    path: 'change',
    component: () =>
                    import('@/views/admin/interfaces/change/index'),
    name: 'change',
    meta: { title: '数据转换', icon: 'icon icon-datasync', noCache: true },
  },
  {
    path: 'msg',
    component: () =>
                    import('@/views/admin/interfaces/msg/index'),
    name: 'msg',
    meta: { title: '数据转换消息', icon: 'icon icon-data-message', noCache: true },
  },
  ],
},
/* {
  name: 'Login',
  component: Layout,
  path: '/admin/login',
  // component: () => import('@iews/login/index'),
  hidden: true
}, */
{
  path: '/admin/ums',
  name: 'ums',
  component: Layout,
  meta: {
    title: '组织机构',
    icon: 'icon icon-organization',
  },
  children: [{
    path: 'user',
    component: () =>
                    import('@/views/admin/ums/user/index'),
    name: 'UserIndex',
    meta: { title: '用户管理', icon: 'icon icon-user', noCache: true },
  },
  {
    path: 'user/add',
    component: () =>
                    import('@/views/admin/ums/user/form'),
    name: 'UmsUserAdd',
    hidden: true,
    meta: { title: '添加用户', icon: 'dashboard', activeMenu: '/admin/ums/user', noCache: true },
  },
  {
    path: 'user/edit/:id',
    component: () =>
                    import('@/views/admin/ums/user/form'),
    name: 'UmsUserEdit',
    hidden: true,
    meta: { title: '编辑用户', icon: 'dashboard', activeMenu: '/admin/ums/user', noCache: true },
  },
  // {
  //   path: 'unit',
  //   component: () =>
  //                   import('@/views/admin/ums/unit/index'),
  //   name: 'Unit',
  //   meta: { title: '单位管理', icon: 'yml-unit-manage', noCache: true }
  // },
  // {
  //   path: 'uint/add',
  //   component: () =>
  //                   import('@/views/admin/ums/unit/form'),
  //   name: 'UmsUnitAdd',
  //   hidden: true,
  //   meta: { title: '添加单位', icon: 'dashboard', activeMenu: '/admin/ums/unit', noCache: true }
  // },
  // {
  //   path: 'unit/edit/:id',
  //   component: () =>
  //                   import('@/views/admin/ums/unit/form'),
  //   name: 'UmsUnitEdit',
  //   hidden: true,
  //   meta: { title: '编辑单位', icon: 'dashboard', activeMenu: '/admin/ums/unit', noCache: true }
  // },
  // {
  //   path: 'depart',
  //   component: () =>
  //                   import('@/views/admin/ums/depart/index'),
  //   name: 'DepartIndex',
  //   meta: { title: '单位部门管理', icon: 'yml-depart-setting', activeMenu: '/admin/ums/depart', noCache: true }
  // },
  // {
  //   path: 'duty',
  //   component: () =>
  //                   import('@/views/admin/ums/duty/index'),
  //   name: 'DutyIndex',
  //   meta: { title: '单位职务管理', icon: 'yml-job-manage', activeMenu: '/admin/ums/duty', noCache: true }
  // },
  // {
  //   path: 'unit-type',
  //   component: () =>
  //                   import('@/views/admin/ums/unit-type/index'),
  //   name: 'UnitType',
  //   meta: { title: '单位类型管理', icon: 'yml-unittype-manage', noCache: true }
  // },
  // {
  //   path: 'user-recycle',
  //   component: () =>
  //                   import('@/views/admin/ums/user/restore'),
  //   name: 'Icons',
  //   meta: { title: '用户回收站', icon: 'yml-user-recycle', noCache: true }
  // },
  {
    path: 'role',
    component: () => import('@/views/admin/ums/role/index'),
    name: 'role',
    meta: { title: '角色管理', icon: 'icon icon-role', noCache: true },
  },
  {
    path: 'role/:id',
    component: () => import('@/views/admin/ums/role/user'),
    name: 'roleUser',
    hidden: true,
    meta: { title: '角色管理', icon: 'icon icon-role', noCache: true },
  },
  {
    path: 'power',
    component: () => import('@/views/admin/ums/permission/index'),
    name: 'power',
    meta: { title: '权限管理', icon: 'icon icon-privilege-manage', noCache: true },
  },
  {
    path: 'area',
    component: () => import('@/views/admin/ums/area/index'),
    name: 'area',
    meta: { title: '区域管理', icon: 'icon icon-area', noCache: true },
  },
  {
    path: 'area/:id',
    component: () => import('@/views/admin/ums/area/user'),
    name: 'areaUser',
    hidden: true,
    meta: { title: '区域管理', icon: 'icon icon-role', noCache: true },
  },
  // {
  //   path: 'qualified-type',
  //   component: () =>
  //                   import('@/views/admin/ums/qualified-type/index'),
  //   name: 'qualified',
  //   meta: { title: '资质管理', icon: 'yml-qualifications-manage', noCache: true }
  // }
  ],
},
{
  path: '/admin/sys',
  name: 'sys',
  component: Layout,
  hidden: true,
  meta: {
    title: '系统配置',
    icon: 'icon icon-sys-conf',
  },
  children: [{
    path: 'dic',
    hidden: true,
    component: () =>
                    import('@/views/admin/sys/dic/index'),
    name: 'dic',
    meta: { title: '数据字典', icon: 'icon icon-dic', noCache: true },
  },
  {
    path: 'config',
    component: () =>
                    import('@/views/admin/sys/config/index'),
    name: 'config',
    meta: { title: '系统设置', icon: 'icon icon-cog', noCache: true },
  },
  ],
},
];
